﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.peddlerUI {
    import flash.events.*;
    import flash.display.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.*;
    import flash.text.*;
    import Display.aswingui.*;

    public class PeddlerInputDialog extends GenericDialog {

        public function PeddlerInputDialog(_arg1:String, _arg2:String="", _arg3:int=0, _arg4:Function=null, _arg5:String="", _arg6:String="", _arg7:Boolean=true, _arg8:int=0, _arg9:String="", _arg10:Function=null, _arg11:String="", _arg12:Boolean=false){
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12);
            this.addEventListener(Event.ADDED_TO_STAGE, this.setFocus, false, 0, true);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary();
            _local1["dialog_bg"] = (new EmbeddedArt.peddler_input_bg() as DisplayObject);
            return (_local1);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:PeddlerInputView = new PeddlerInputView(_arg1, m_message, m_title, GenericDialogView.TYPE_SAVE, m_callback, m_icon, m_iconPos);
            return (_local2);
        }
        public function get textArea():TextField{
            return ((m_jpanel as PeddlerInputView).textarea.getTextField());
        }
        protected function setFocus(_arg1:Event):void{
            this.removeEventListener(Event.ADDED_TO_STAGE, this.setFocus);
            Global.stage.focus = this.textArea;
            ASwingHelper.prepare(m_jwindow);
        }

    }
}//package Display.peddlerUI 
